<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
name:<span th:text="${stu2.name}"></span>
java:<span th:text="${stu2.java}"></span>
age:<span th:text="${stu2.age}"></span>
gender:<span th:text="${stu2.gender}"></span>
</body>
</html>